package com.itcast.demo02;

import java.sql.SQLOutput;

public class Student {
    private  String name;


    private  int age;
    private  String addr;
    private  String cao;
    public int id;
    private int A;

    public Student(String name, int age, String addr, String cao) {
        this.name = name;
        this.age = age;
        this.age = age;
        this.addr = addr;
        this.cao = cao;
    }

    public Student() {
    }

    public String getName() {

        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        System.out.println("   ");
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getCao() {
        return cao;
    }

    public void setCao(String cao) {
        this.cao = cao;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", addr='" + addr + '\'' +
                ", cao='" + cao + '\'' +
                '}';
    }
}
